package com.yuxue.petlog;
//主程序：演示日志的添加和打印。
public class PetShopLogger {
    public static void main(String[] args) {

        LogManager logManager = new LogManager();

        // 添加日志
        logManager.addPurchaseLog("小明", Page.点餐页面, PaymentMethod.余额, "套摄影套餐", 2, 30);
        logManager.addPurchaseLog("小红", Page.商城页面, PaymentMethod.现金, "袋猫粮", 1, 50);
        logManager.addExchangeLog("小花", Page.积分兑换页面, PaymentMethod.积分, "次宠物养护服务", 1, 40);

        // 打印所有日志
        logManager.printAllLogs();
    }
}